import { http } from '@/axios'

/**
 * @description 卡密列表
 */
export function carmiList (data) {
  return http.request({
    url: '/carmi/list',
    method: 'POST',
    data,
  })
}

/**
 * @description 创建卡密
 */
export function createCarmi (data) {
  return http.request({
    url: '/carmi/batch_create',
    method: 'POST',
    data,
  })
}

/**
 * @description 修改卡密
 */
export function updateCarmi (data) {
  return http.request({
    url: '/carmi/update',
    method: 'POST',
    data,
  })
}

/**
 * @description 删除卡密
 */
export function deleteCarmi (data) {
  return http.request({
    url: '/carmi/delete',
    method: 'POST',
    data,
  })
}